package kr.bae.androidcomplete02;

import kr.bae.androidcomplete02.Ch11.Ch11_AMain;
import kr.bae.androidcomplete02.ch12.Ch12_AMain;
import kr.bae.androidcomplete02.ch13.Ch13_AMain;
import kr.bae.androidcomplete02.ch14.Ch14_AMain;
import kr.bae.androidcomplete02.ch15.Ch15_AMain;
import kr.bae.androidcomplete02.ch16.Ch16_AMain;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ActivityMain extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	
	public void mOnClick(View v) {
		Intent i = null;
		switch (v.getId()) {
		case R.id.main_btn01:	
			i = new Intent(this, Ch11_AMain.class);
			break;
			
		case R.id.main_btn02:	
			i = new Intent(this, Ch12_AMain.class);
			break;
			
		case R.id.main_btn03:	
			i = new Intent(this, Ch13_AMain.class);
			break;
			
		case R.id.main_btn04:	
			i = new Intent(this, Ch14_AMain.class);
			break;
			
		case R.id.main_btn05:	
			i = new Intent(this, Ch15_AMain.class);
			break;
			
		case R.id.main_btn06:	
			i = new Intent(this, Ch16_AMain.class);
			break;

		default:
			break;
		}
		startActivity(i);
	}
}	
